package org.lixiong.seralizable;

public class FFFtest {
	public static void main(String[] args) {
		int[] a = new int[1000];
		int[] b = new int[10000000];
		long start = System.currentTimeMillis();
		// method 1
		for (int i = 0; i < 1000; i++) {
			for (int j = 0; j < 10000000; j++) {
				a[i]++;
			}
		}
		long end = System.currentTimeMillis();
		System.out.println(end - start);

		start = System.currentTimeMillis();
		// method 2
		for (int i = 0; i < 10000000; i++) {
			for (int j = 0; j < 1000; j++) {
				b[i]++;
			}
		}
		end = System.currentTimeMillis();
		System.out.println(end - start);

	}
}
